
module.exports={
    devServer:{
        before(app){
            app.get('/login', (req, res) => {
                let {username,password}=req.query
                if(username==='15296713254'&&password==='123'){
                    res.send({
                        code:200,
                        msg:'登录成功'
                    })
                }else{
                    res.send({
                        code:400,
                        msg:'登录失败'
                    })
                }
            })
        }
    }
}